/**
 * desc: 订单
 */

import request from '@/static/uitls/request.js'

// 获取订单列表
const getTeacherOrderList = (page,size,status) => {
	return request({
		url: '/teacher/v1/order/index',
		method: 'GET',
		data:{
			page:page,
			size:size,
			status:status
		}
	})
}

// 获取订单详情
const getTeacherOrderRead = (id,showOnload=true) => {
	return request({
		url: '/teacher/v1/order/read?course_order_id='+id,
		method: 'GET',
		showOnload
	})
}

module.exports = {
	getTeacherOrderList,
	getTeacherOrderRead
}
